export function clctime(date, e) {
    let i = date.toLocaleDateString()
    let b = date.toTimeString()
    b = b.split("G")
    b = b[0].split(":")
    b.forEach((el, index) => {
        if (el.length == 1) {
            i[index] = "0" + el
        }
    })
    b = b.join(":")

    i = i.split("/")

    i.forEach((el, index) => {
        el = parseInt(el)
        if (el.length == 1) {
            i[index] = "0" + el
        }
    });
    i = i.join("-")
    if (!e) {
        b = "23:59:59"
    } else {
        b = "00:00:00"
    }
    let c = i + " " + b
    return c

}